export default {
    // 开启命名空间
    namespaced: true,
    state: {
        name: "张三"
    },
    getters: {
        newName(state) {
            return state.name + '@@@@'
        }
    },
    mutations: {
        CHANGE_NAME(state){
            state.name = '修改了'
        }
    },
    actions: {
        init() {
            console.log('发起异步')
        }
    },
}